<template>
<div>
    <h3>MyMovie组件---{{$route.params.mid}}---{{mid}}</h3>
    <button type="button" class="btn btn-danger" @click="goBack">后退</button>
</div>
</template>

<script>
export default{
    name:'MyMovie',
    props:['mid'],
    methods: {
        goBack(){
            // 返回到当前页的上一页
            this.$router.go(-1)
        }
    },
}
</script>

<style lang="less" scoped>
</style>